/*!
 * utils
 * Copyright(c) purenode
 * @author yangjian102621@gmail.com
 * MIT Licensed
 */

"use strict";

module.exports = {

	//简单对象合并继承
	extends : function(org, merge) {

		for ( var name in merge ) {
			org[name] = merge[name];
		}
		return org;
	},

	//首字母大写
	ucfirst : function(str) {
		var str = str.toLowerCase();
		str = str.replace(/\b\w+\b/g, function(word){
			return word.substring(0,1).toUpperCase()+word.substring(1);
		});
		return str;
	}

};
